/* 
 * Copyright (C), 2016-2020, 厦门盈欣宝金融信息服务有限公司
 * Project Name :boot-parent
 * File Name: org.easytouesit.mongodb.model
 * Encoding UTF-8 
 * Version: 1.0 
 * Date: 2018-08-27 14:45
 * History:  
 * 1. Date: 2018-08-27
 *    Author: guojm 
 *    Modification: 新建
 * 2. ...
 */
package org.easytouesit.mongodb.model;

import org.springframework.data.annotation.Id;

import java.io.Serializable;

/**
 * @author guojm
 * @version V1.0
 * @date 2018-08-27 下午 14:45
 */
public class User implements Serializable{

    @Id
    private String _id;
    private int id;
    private String name;
    private int age;
    public User() {
        super();
    }
    public User(String _id, int id, String name, int age) {
        this._id = _id;
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public User(int id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public String get_id() {
        return _id;
    }

    public void set_id(String _id) {
        this._id = _id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "_id='" + _id + '\'' +
                ", id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
